package com.ljf.captcha.vo;

import java.io.Serializable;

/**
 * @Auther: lijinfeng
 * @Date: 2022/6/29
 * @Description 描述: 封装验证码对象
 */
public class KaptchaVO implements Serializable {

    private static final long serialVersionUID = -8111283461446073202L;



    /**
     * 主键keu
     */
    private String key;

    /**
     * 值
     */
    private String value;

    /**
     * 过期时间
     */
    private Long expirationTime = 30*60L;

    public KaptchaVO(String key, String imgString) {
        this.key = key;
        this.value = imgString;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getExpirationTime() {
        return this.expirationTime;
    }

    @Override
    public String toString() {
        return "KaptchaVO{" +
                "key='" + key + '\'' +
                ", value='" + value + '\'' +
                ", expirationTime=" + expirationTime +
                '}';
    }
}
